home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1994 August / August CD.bin / Shareware / Utilities / No Erase 1.0 ƒ / Read Me < prev   
Text File  |  1994-06-05  |  2KB  |  51 lines

  1. No erase 1.0
  2. © P. Stadelmann, April 1994
  3.  
  4. This little INIT will help prevent accidental erasure of floppys, disks...(anything that can be erased from the Finder). Your startup disk is protected against accidental erasure because it holds the active system. But if you have more than one hard disk, the other ones don't get that "automatic” protection.
  5.  
  6. So I wrote this quick hack to hide the erase command from users who are not supposed to use it. When No Erase is installed, you can't select “Erase disk…” from the Special menu in the Finder, unless you hold down a “hot key” while pulling down the menu. The default “hot key” is the command key. The “hot key” code is stored in the 'pref' resource ID 128 in No Erase. You can change it with ResEdit (a template is provided).
  7.  
  8. No Erase uses the process manager to check if the Finder is the front app. Thus, it requires System 7.0 or higher. If you install it under System 6.x or lower, it won't do anything nor should it cause the system to crash, but this was not tested.
  9.  
  10. No Erase assumes that your Finder type is 'FNDR', that the special menu ID is 261 and that the “Erase disk…” command is the 5th item in the Special menu (separator lines count as items). If this is not the case, don't use No Erase !!!
  11.  
  12. No Erase is free and may be distributed freely. Please, don't distribute the INIT without this document.
  13.  
  14. I know the icon is ugly (fortunately, you won't see it at startup), but hey it's only a hack.
  15.  
  16. Disclaimer
  17. ----------
  18.  
  19. This software comes without any warranty. It has not been extensively tested.
  20. Use it at your own risk.
  21.  
  22. Author
  23. ------
  24.  
  25. Feel free to send me comments, suggestions or bug reports.
  26.  
  27. Patrick Stadelmann
  28. Vergers 22
  29. 2022 Bevaix
  30. SWITZERLAND
  31.  
  32. e-mail : Patrick.Stadelmann@etudiants.unine.ch
  33.  
  34. Version history
  35. ---------------
  36.  
  37. 1.0a1
  38. First try...
  39.  
  40. 1.0a2
  41. Fixes a bug which caused sporadic crashes (forgot to initialize some ProcessInfoRec fields...).
  42.                     
  43. 1.0a3
  44. Now save and restore register a1 (some programms expect a1 to be preserved by some Toolbox routines even if IM says these routines may modify a1).
  45.                      
  46. 1.0a4
  47. Finally correctly saves and restores registers
  48.  
  49. 1.0 — First released version
  50. Now dims the “Erase disk” item when the “hot” key is up.
  51. Now stores “hot key” code in rsrc 'pref' ID 128.